﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;

namespace Dryricenet.houTai
{
    public partial class order_Details : System.Web.UI.Page
    {
        //1 请求参数成员变量列表
        public string OrderID = "";
        public string Ordertitle = "";
        public string OrderName = "";
        public string Phone = "";
        public string Pay = "";
        public string Zf = "";
        public string Fh = "";
        public string Sh = "";
        public string PayName = "";
        public string Address = "";
        public string Logistics = "";
        public string Note = "";
        public string Time = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int orderid =Convert.ToInt32(Request.QueryString["orderid"]);
                //根据id查询数据，并展示在输入框中
                DataTable dt = OrderBLL.orderDetailedBLL(orderid);
                //用DataRow来存一行数据
                DataRow dr = dt.Rows[0];//第一条数据
                //把数据一个一个的放进输入框里
                OrderID = dr["OrderID"].ToString();
                Ordertitle = dr["Ordertitle"].ToString();
                OrderName = dr["OrderName"].ToString();
                Phone = dr["Phone"].ToString();
                Pay = dr["Pay"].ToString();
                Zf = dr["Zf"].ToString();
                Fh = dr["Fh"].ToString();
                Sh = dr["Sh"].ToString();
                PayName = dr["PayName"].ToString();
                Address = dr["Address"].ToString();
                Logistics = dr["Logistics"].ToString();
                Note = dr["Note"].ToString();
                Time = dr["Time"].ToString();
            }
        }
    }
}